package com.bw.day03.adapter

import com.bumptech.glide.Glide
import com.bw.base.net.entity.AllKanjia
import com.bw.base.net.entity.Res
import com.bw.day03.R
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder

class AllKanJiaAdapter: BaseQuickAdapter<AllKanjia, BaseViewHolder>(R.layout.item_allkanjia) {
    override fun convert(
        holder: BaseViewHolder,
        item: AllKanjia
    ) {
        Glide.with(context).load(item.image).into(holder.getView(R.id.img))
        holder.setText(R.id.name,item.title)
       holder.setText(R.id.time,item.stopTime.toString())
        holder.setText(R.id.money,"￥"+item.minPrice)
    }
}